<?php
/**
 * 考勤操作验证器
 */

namespace app\common\validate;

class AttendanceValidate extends Validate
{
    protected $rule = [
            'staff_id|员工id' => 'require',
    'department_id|部门id' => 'require',
    'attendance_time|考勤时间' => 'require',

    ];

    protected $message = [
            'staff_id.require' => '员工id不能为空',
    'department_id.require' => '部门id不能为空',
    'attendance_time.require' => '考勤时间不能为空',

    ];

    protected $scene = [
        'add'  => ['staff_id','department_id','attendance_time',],
        'edit' => ['attendance_time',],

    ];

    

}
